/*
 * @(#) Tag.java 2018年3月5日 下午4:52:01
 *
 * Copyright 2018 CIMIP, Inc. All rights reserved.
 * H-VISIONS PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */package cn.hc.share.entity;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 回复表entity
 * @author waitum
 *
 */
public class Answer implements Serializable
{

	private static final long serialVersionUID = -782801903660700357L;

	private String id;//标签id
	private String commentId;//评论id
	private String replyUserId;//回复的目标用户id
	private String userId;//回复用户id
	private String content;//回复内容
	private Timestamp createTime ;//标签创建时间
	public String getId()
	{
		return id;
	}
	public void setId(String id)
	{
		this.id = id;
	}
	public String getCommentId()
	{
		return commentId;
	}
	public void setCommentId(String commentId)
	{
		this.commentId = commentId;
	}
	public String getReplyUserId()
	{
		return replyUserId;
	}
	public void setReplyUserId(String replyUserId)
	{
		this.replyUserId = replyUserId;
	}
	public String getUserId()
	{
		return userId;
	}
	public void setUserId(String userId)
	{
		this.userId = userId;
	}
	public String getContent()
	{
		return content;
	}
	public void setContent(String content)
	{
		this.content = content;
	}
	public Timestamp getCreateTime()
	{
		return createTime;
	}
	public void setCreateTime(Timestamp createTime)
	{
		this.createTime = createTime;
	}
	@Override
	public int hashCode()
	{
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj)
	{
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Answer other = (Answer) obj;
		if (id == null)
		{
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	@Override
	public String toString()
	{
		return "Answer [id=" + id + ", commentId=" + commentId + ", replyUserId=" + replyUserId + ", userId=" + userId
				+ ", concent=" + content + ", createTime=" + createTime + "]";
	}
	
	
}
